import {useLocation,useMatch,useParams,useSearchParams} from 'umi'
export default function() {
  const location = useLocation()
  const match = useMatch('/foo/:id')
  const params = useParams()
  console.log("🚀 ~ function ~ params:", params)
  return (
    <div>
      <h1>foo --- {location.pathname}</h1>
    </div>
  );
}